package com.ruoyi.shop.domain;

import java.math.BigDecimal;

import com.ruoyi.shopType.domain.ShopType;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 shop
 * 
 * @author 楠
 * @date 2025-05-20
 */
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private ShopType shopType;

    /** id */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品种类id */
    @Excel(name = "商品种类id")
    private Long shopTypeId;

    /** 库存 */
    @Excel(name = "库存")
    private Long inventory;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    /** 照片 */
    @Excel(name = "照片")
    private String img;

    public ShopType getShopType() {
        return shopType;
    }

    public void setShopType(ShopType shopType) {
        this.shopType = shopType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setShopTypeId(Long shopTypeId) 
    {
        this.shopTypeId = shopTypeId;
    }

    public Long getShopTypeId() 
    {
        return shopTypeId;
    }

    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("id", getId())
//            .append("name", getName())
//            .append("shopTypeId", getShopTypeId())
//            .append("inventory", getInventory())
//            .append("price", getPrice())
//            .append("createTime", getCreateTime())
//            .append("updateTime", getUpdateTime())
//            .append("createUser", getCreateUser())
//            .append("updateUser", getUpdateUser())
//            .append("img", getImg())
//            .toString();
//    }

    @Override
    public String toString() {
        return "Shop{" +
                "shopType=" + shopType +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", shopTypeId=" + shopTypeId +
                ", inventory=" + inventory +
                ", price=" + price +
                ", createUser='" + createUser + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", img='" + img + '\'' +
                '}';
    }
}
